﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master_form.master" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="App_Form_Upload_upload" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <Ajax:AsyncFileUpload
        OnClientUploadComplete="uploadComplete"
        runat="server" ID="AsyncFileUpload1" Width="400px" UploaderStyle="Traditional" BackColor="White" ThrobberID="myThrobber"
         OnUploadedComplete="AsyncFileUpload1_UploadedComplete" />
    <div id="someID" style="display:none;"></div>
    <asp:HiddenField runat="server" ID="loai" Value="" />
    <script type="text/javascript">
        window.onload = function () {
            $("#someID").text("");
        }
        function uploadComplete(sender, args) {
            var b_file = args.get_fileName();
            var today = new Date();
            b_file = today.getFullYear() + "/" + b_file;
            parent.window["NhapAnh"](b_file);
        }
    </script>
</asp:Content>

